<?php
/**
 * Created by PhpStorm.
 * User: banfuguang
 * Date: 2018/3/18
 * Time: 12:36
 */
?>
<?php foreach ( $news as $key => $value ) { ?>

    <dl class="news-item">
        <dt><?= $value['datestr']?></dt>
        <?php foreach ( $value['list'] as $item ){ ?>
            <dd <?= $item['ishot'] ? 'class="red"' : ''?>>
                <p><i class="point"></i><?= date("H:i",strtotime($item['ptime']))?></p>
                <a href="detail-<?= $item['id'];?>.html">【<?= $item['title']?>】<?= common\helpers\StringHelper::truncateMsg(strip_tags($item['content']),200);?></a>
            </dd>
        <?php } ?>
    </dl>
<?php } ?>
